import {get,post} from "@/api/config/config"
export const getProvince = (p?:any)=>get('Public/getProvince',p)
export const getCity = (p:any)=>get('Public/getCity',p)
export const getArea = (p:any)=>get('Public/getArea',p)

//获取商品
export const getItem = (p?:any)=>get('WHGoods/index',p)
//登录
//export const login = (p: any) => post('MemberLogin/accountLogin', p)
export const login = (p: any) => post('WHPublic/login', p)
//用户信息
export const profile = (p?:any) => get('WHStore/profile',p)
//开单
export const addOrder = (p:any)=>post('WHGoods/place',p)
//获取数据
export const getData = (p?:any)=>get('WHStore/getData',p)

//地区门店
export const getStore = (p?:any)=>get('WHStore/getStore',p)
//提交订单
export const itemLists = (p?:any)=>post('WHGoods/lists',p)
export const buyApi = (p:any)=>post('WHGoods/addOrder',p)
export const orderListsApi = (p:any)=>post('WHGoods/orderLists',p)
export const handleOrder = (p:any)=>post('WHGoods/handleOrder',p)
